<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.org/schema/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a="http://richfaces.org/a4j" template="layout/template.xhtml">

	<ui:define name="body">

		<rich:panel>
			<f:facet name="header">聚会详细</f:facet>

			<table border="1">
				<tbody>
					<tr>
						<td>聚会名称</td>
						<td>#{nomikai.name}</td>
					</tr>
					<tr>
						<td>日期</td>
						<td><h:outputText value="#{nomikai.date}">
								<f:convertDateTime pattern="yyyy/MM/dd"></f:convertDateTime>
							</h:outputText></td>
					</tr>
					<tr>
						<td>详细</td>
						<td><h:inputTextarea value="#{nomikai.detail}"
								readonly="true" cols="40" rows="10" /></td>
					</tr>
				</tbody>
			</table>
		</rich:panel>
		
		<rich:panel>
			<h:form>
				<f:facet name="header">参加者一览</f:facet>
				<rich:dataTable value="#{nomikaimembers}" var="nm">
					<h:column>
						<f:facet name="header">
							<h:outputText styleClass="headersText" value="参加者名" />
						</f:facet>
						#{nm.userid.name}
						</h:column>
					<h:column>
						<f:facet name="header">
							<h:outputText styleClass="headersText" value="参加" />
						</f:facet>
						#{nm.attend?'〇':''}
						</h:column>
					<h:column>
						<f:facet name="header">
							<h:outputText styleClass="headersText" value="干事" />
						</f:facet>
						#{nm.steward?'〇':''}
						</h:column>
					<h:column>
						<f:facet name="header">
							<h:outputText styleClass="headersText" value="action" />
						</f:facet>
						<h:commandButton value="#{!nm.attend?'参加':'取消'}"
							action="#{nomikaiDetailAction.confirm}" />
					</h:column>
				</rich:dataTable>
			</h:form>
		</rich:panel>
	</ui:define>

</ui:composition>
